<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
		<%@ taglib uri="http://www.tietiao.com/functions" prefix="my"%>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>用户登陆</title>
		<%@ include file="../include/easyjs_include.jsp"%>
		<script type="text/javascript" src="./js/fg/common/utils.js"></script>
		<script type="text/javascript">
$(document).ready(function(){
	//global vars
	var form = $("#formId")
	var name = $("#userName");
	var password = $("#password");
	//On blur
	name.blur(validateName);
	password.blur(validatePassword);
	function validateName(){
		if(name.val()==''){
			name.next().html('');
			name.next().next().next().html("用户昵称不能为空").show();
			return false;
		}else{
			name.next().next().next().hide();
			return true;
		}
	}
	function validatePassword(){
		if(password.val()==''){
			password.next().html('');
			password.next().next().next().html("密码不能为空").show();
			return false;
		}else{
			name.next().next().next().hide();
			return true;
		}
	}
	form.submit(function(){
		if(validateName() && validatePassword()){
			return true;
		}else{
			return false;			
		}	
	});
});
	</script>
	</head>
	<body class="no-subnav page-home">
		<c:import url="../include/default_head.jsp">
			<c:param name="menu" value="12" />
		</c:import>
		<div class="sign up2">
			<div class="container">
				<div class="teaser alt">
					<div class="container">
					</div>
					<!-- / container -->
				</div>
				<!-- / teaser -->
				<div class="wrapper-content">
			<div class="wrapper-content-title">
				<span>用户登录</span>
			</div>
			<div id="content">
				<h2> 欢迎登录到贴条网 </h2>
				<form action="./member_user_login.htm" id="formId" method="post">
					<input name="fromUrl" value="${fromUrl}" type="hidden">
					${my:tokenInput()}
					<fieldset class="hastext">
						<span class="title">用户名：</span>
						<input class="sffocus jqPlaceholder" name="userName" id="userName"  type="text"  maxlength="32" value="${userName}" >
						<span class="chk">&nbsp;</span>
						<span>你可以使用用户名或邮箱登录</span>
						<span class="error message" style="display:${errorType==1?'block':'none'};">您输入的用户名'${userName}'不存在</span> <br/>
						<span class="title">密码：</span>
						<input class="sffocus jqPlaceholder" name="password" name="password" id="password" type="password" maxlength="16">
						<span class="chk">&nbsp;</span><span>&nbsp;</span>
						<span class="error message" style="display:${errorType==2?'block':'none'};">您输入的密码不正确</span><br />
						<span class="title">&nbsp;</span>
						<input type="checkbox" checked="checked" value="1" name="auto">
						<span>记住登录状态</span> <br/>
						<span class="title">&nbsp;</span>
						<button type="submit" class="button sign">登录</button>&nbsp;&nbsp;
						<a href="member_user_toFindPass.htm">忘记密码？</a>&nbsp;
						<a href="member_user_regInput.htm">注册</a>
					</fieldset>
				</form>
					<div class="popoutlogin">
						<a href="member_webService_toOauthQQ.htm"><img src="./images/feground/16-qqweibo.png">用腾讯微博登录</a> 
						<a href="member_webService_toOauthRenRen.htm"><img src="./images/feground/16-renren.png"/>用人人网账号登录</a>&nbsp;&nbsp;
						<a href="member_webService_toOauthKaixin.htm"><img src="./images/feground/16-kaixin001.png"/>用开心网帐号登录</a>&nbsp;&nbsp;
						<a href="#"><img src="./images/feground/16-weibo.png"/>用新浪微博登录</a>&nbsp;&nbsp;
					</div>
				</div>
			</div>
			<c:import url="../include/default_foot.jsp" />
		</div>
		</div>
		<!-- / container -->
		<div id="fb-root">
		</div>
	</body>
</html>